package com.suse.warmstill.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author 黄靖
 * @author 2022-10-21 14:10
 * description:
 **/
@ApiModel("资源Vo")
@Data
public class ResourceVo extends BaseVo {
    @ApiModelProperty("主键,插入的时候 为空")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @NotNull(message = "资源名不可以为空")
    @ApiModelProperty("资源名")
    private String resourceName;

    @ApiModelProperty("权限路径")
    private String url;

    @ApiModelProperty("请求方式")
    private String requestMethod;

    @NotNull(message = "父权限id不能为空")
    @ApiModelProperty("父权限id")
    private Long parentId;

    @NotNull(message = "匿名访问不能为空")
    @ApiModelProperty("是否匿名访问 0否 1是")
    private Boolean isAnonymous;


}
